<template>
  <el-col :span="12">
    <div style="height: 588px;padding: 13px;box-shadow: 0 2px 12px 0 rgba(0,0,0,.2);border-radius: 5px">
      <el-tabs v-model="activeName">
        <el-tab-pane name="notice">
          <span slot="label"><i class="el-icon-date" /> {{ $t('notice') }}</span>
          <div style="height: 500px;" class="uni-scroll">
            <user-notice />
          </div>
        </el-tab-pane>
        <el-tab-pane name="deviceWarn">
          <span slot="label"><i class="el-icon-warning-outline" /> {{ $t('device')+$t('warn') }}</span>
          <div style="height: 500px;" class="uni-scroll">
            <device-warn />
          </div>
        </el-tab-pane>
      </el-tabs>
    </div>
  </el-col>
</template>

<script>
import UserNotice from './UserNotice'
import DeviceWarn from './DeviceWarn'
export default {
  name: 'Notice',
  components: {
    UserNotice,
    DeviceWarn
  },
  data() {
    return {
      activeName: 'notice'
    }
  }

}
</script>

